//
//  LLUserInfo.h
//  LoveLove
//
//  Created by leiyifan on 2019/5/21.
//  Copyright © 2019 wkf. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Singleton.h"
NS_ASSUME_NONNULL_BEGIN

@interface LLUserInfo : NSObject

singleton_h(User)
/*
头像
*/
@property (nonatomic,strong) NSString *user_avatar;
/**
 用户id
 */
@property (nonatomic,strong) NSString *user_id;
/**
 账号名称
 */
@property (nonatomic,strong) NSString *user_name;
/**
 登录状态
 */
@property (nonatomic,strong) NSString *user_login;

/**
 注销随机数，注销时需上传
 */
@property (nonatomic,strong) NSString *user_random;

/**
 发表数量
 */
@property (nonatomic,strong) NSString *user_report;
/**
 关注数量
 */
@property (nonatomic,strong) NSString *user_follow;
/**
 积分
 */
@property (nonatomic,strong) NSString *user_point;


@property (nonatomic,strong) NSString *user_info;
+ (instancetype) getUserInfoFromLocal;

+ (void) saveUserInfoToLocal:(NSDictionary *)dict;

/**
 是否登录
 */
@property (nonatomic,assign) BOOL isLogin;


-(instancetype)initWithDic:(NSDictionary *)dic;
+ (void) clearLocalUserInfo;

@end

NS_ASSUME_NONNULL_END
